package com.lanxin.oa.message.service;

import com.lanxin.bean.XxDuanxiaoxi;
import com.lanxin.bean.XxXiaoxijieshou;
import com.lanxin.util.PageBean;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Date;

public interface DuanxiaoxiService {

    //查询联系人
    public PageBean<XxDuanxiaoxi> listDuanxiaoxi(Integer page, Integer pageSize, Integer creator);

    //发送联系人
    public void insertDuanxiaoxi(HttpServletRequest request, XxDuanxiaoxi duanxiaoxi, Integer[] empids, MultipartFile[] file);

    //根据条件查询
    public PageBean<XxDuanxiaoxi> pageDaunxiaoxi(Integer page, Integer pageSize, Integer creator, String biaoti,
                                                 Integer jieshouren, Date startDate, Date endDate);

    //通过接收人查询
    public PageBean<XxXiaoxijieshou> xxjsList(Integer page, Integer pageSize, Integer jieshouren);

    //根据条件查询接收人
    public PageBean<XxXiaoxijieshou> pageXxjs(Integer page, Integer pageSize, String biaoti,
                                              Integer jieshouren, Date startDate, Date endDate, Integer jieshourens);

    //查看详情
    public XxXiaoxijieshou xxjsxq(Integer oid);

    //下载图片
    public void xiazaifiles(String fileName, HttpServletResponse response, HttpServletRequest request);

}
